import React from 'react';
import {Router, Route, Switch} from 'react-router-dom';
import {createBrowserHistory} from 'history';
import Home from '../pages/home/home';
import Article from '../pages/article/article';

const browserHistory = createBrowserHistory()

const BasicRoute = () => (
  <Router history={browserHistory}>
    <Switch>
      <Route exact path="/" component={Home}/>
      <Route exact path="/article/:id" component={Article}/>
    </Switch>
  </Router>
);


export default BasicRoute;